package net.qiqbframework.messaging.intercepting;


import net.qiqbframework.messaging.Message;
import net.qiqbframework.messaging.annotation.MessageHandler;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 消息处理拦截器
 */
@MessageHandler
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
public @interface MessageHandlerInterceptor {

    Class<? extends Message> messageType() default Message.class;

    Class<?> payloadType() default Object.class;
}
